﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MVCvoucherAsp.Voucher>>" %>


<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <form id="form1">

<h2>Index</h2>

<p>
   
</p>
<table>
    <tr>
        <th>
           BTC
        </th>
        <th>
            Field
        </th>       
        <th>
            Vervaldatum
        </th>
        <th>
            omschrijving
        </th>
        <th></th>        
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.DisplayFor(modelItem => item.BTC.BtcNaam) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.Field) %>
        </td>       
        <td>
            <%: Html.DisplayFor(modelItem => item.Vervaldatum) %>
            <td>
            <%: Html.DisplayFor(modelItem => item.omschrijving) %>
        </td>   
        <td> <a href="../../Printbon/afprintBon.html">PRINT |</a>  
             <%: Html.ActionLink("Details", "Details", new { id=item.BtcId }) %> 
        </td>     
    </tr>
<% } %>

</table>
<p> <%: Html.ActionLink("Back to List", "Index") %> </p>
</>
    </form>

</asp:Content>
